package com.pro.schedule.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.pro.schedule.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;


@Mapper
public interface UserMapper extends BaseMapper<User> {
    @Select("select * from user where user_account=#{userAccount} and user_password=#{userPassword}")
    User loginUser(String userAccount, String userPassword);

    @Select("select * from user where user_phone=#{userPhone}")
    User loginUserByPhone(String userPhone);
}
